"Top" and "Bottom" are terms used by convention but have no special meaning.
"Under the hood" you could have any (actual) linear structure. The only thing that matters is that when you push 40, 50, 60, 70 (in this order). Then on the next four pop operations your stack should pop 70, 60, 50, 40 (in this order).
"Under the hood" you could also choose either end of your linear structure for adds and removes -- but it must be only one end, and must not change.